<template>
  <div class="bigLeft" @click="onClick">
    <div class="bg">
      <div class="title d-flex">
        <span class="text">人员健康评估</span>
        <div class="line">
          <dv-decoration-3 class="dv-dec-3" />
        </div>
      </div>
      <dv-decoration-2 class="line2"/>
      <div class="capsuleContent">
        <dv-capsule-chart :config="data" class="capsuleBox" />
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'BigLeft3',
    props: {
      data: {
        type: Object,
        default: () => {}
      }
    },
    data () {
      return {
      }
    },
    methods: {
      onClick () {
        this.$emit('on-click')
      }
    }
  }
</script>

<style scoped lang="less">
  .bigLeft {
    width: 100%;
    height: 100%;
    padding: 14px; cursor: pointer;
    .bg {
      border-radius: 12px;
      background: rgba(35, 62, 249, 0.2);
      height: 100%;
      padding: 10px
    }
    .title { position: relative;
      .text {
        color: #e4ebfb;
        font-size: 20px;
      }
      .line {
        width: 100px; height: 30px; margin-left: 10px;
        .dv-dec-3 {
          position: relative;
          width: 100%;
          height: 100%;
        }
      }
    }
    .line2 {width:100%;height:5px;margin-top: 6px}
    .capsuleContent {width:89%;padding-top: 10px;}
    .capsuleBox {width:100%;height:200px}
    /deep/.dv-capsule-chart .unit-label { opacity: 0}
    /deep/.dv-capsule-chart .unit-text {
      position: absolute; bottom: 8px; right: -15px;
    }
  }
  .d-flex { display: flex; }
</style>
